package org.yuning.cloud.common.exception;

/**
 * @author zhangzz
 * @email 291110369@qq.com
 * @date 2023/11/9 16:53
 * @description
 **/
public class ApiException extends RuntimeException{

    private int code = -1;

    public ApiException(String message) {
        super(message);
    }

    public ApiException(String message, int code) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
